from manim import *

class fadein_fadeout(Scene):
    def construct(self):
        square = Square()
        self.play(FadeIn(square))   # 淡入
        self.wait()
        self.play(FadeOut(square))   # 淡出
        self.wait()